package com.entry;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/*order_id,order_code,order_addres,order_posts,order_receiver
* mobile,user_message,create_data,pay_data,delivery_data,user_id
* confirm_data,status,body,total_amount,subject
* */
@Data
public class OrderForm implements Serializable {
    private int order_id;
    private String order_code;
    private String order_addres;
    private int order_posts;
    private String order_receiver;
    private String mobile;
    private String user_message;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date create_date;
    private Date pay_date;
    private Date delivery_date;
    private int user_id;
    private Date confirm_date;
    private int status;
    private String body;
    private int total_amount;
    private String subject;

    private Sell sell;

    public Sell getSell() {
        return sell;
    }

    public void setSell(Sell sell) {
        this.sell = sell;
    }

    public OrderForm() {
    }

    public OrderForm(String order_code, String order_addres,String order_receiver, String mobile, Date create_date,int user_id,int status, String body, int total_amount, String subject) {

        this.order_code = order_code;
        this.order_addres = order_addres;
        this.order_receiver = order_receiver;
        this.mobile = mobile;
        this.create_date = create_date;
        this.user_id = user_id;
        this.status = status;
        this.body = body;
        this.total_amount = total_amount;
        this.subject = subject;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public String getOrder_code() {
        return order_code;
    }

    public void setOrder_code(String order_code) {
        this.order_code = order_code;
    }

    public String getOrder_addres() {
        return order_addres;
    }

    public void setOrder_addres(String order_addres) {
        this.order_addres = order_addres;
    }

    public int getOrder_posts() {
        return order_posts;
    }

    public void setOrder_posts(int order_posts) {
        this.order_posts = order_posts;
    }

    public String getOrder_receiver() {
        return order_receiver;
    }

    public void setOrder_receiver(String order_receiver) {
        this.order_receiver = order_receiver;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUser_message() {
        return user_message;
    }

    public void setUser_message(String user_message) {
        this.user_message = user_message;
    }

    public Date getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = create_date;
    }

    public Date getPay_date() {
        return pay_date;
    }

    public void setPay_date(Date pay_date) {
        this.pay_date = pay_date;
    }

    public Date getDelivery_date() {
        return delivery_date;
    }

    public void setDelivery_date(Date delivery_date) {
        this.delivery_date = delivery_date;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public Date getConfirm_date() {
        return confirm_date;
    }

    public void setConfirm_date(Date confirm_date) {
        this.confirm_date = confirm_date;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public int getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(int total_amount) {
        this.total_amount = total_amount;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }
}
